package com.project.bean;

import java.time.LocalDate;

/**
 * 商品实体类
 */
public class ProductBean {
    /**商品编号*/
    private int id;
    /**商品名*/
    private String name;
    /**单价*/
    private int price;
    /**产地*/
    private String address;
    /**生产日期*/
    private LocalDate createDate ;
    /**图片*/
    private String imgPath;
    /**销售数量*/
    private int sellNum;

    public int getSellNum() {
        return sellNum;
    }

    public void setSellNum(int sellNum) {
        this.sellNum = sellNum;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public LocalDate getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDate createDate) {
        this.createDate = createDate;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    @Override
    public String toString() {
        return "ProductBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", address='" + address + '\'' +
                ", createDate=" + createDate +
                ", imgPath='" + imgPath + '\'' +
                ", sellNum=" + sellNum +
                '}';
    }
}
